<div class="container main" ng-controller="roomsController">
    <div>
        <div class="span10 offset1" style="text-align: center">
        </div>
        <h1>rooms</h1>
        <ul ng-repeat="channel in channels">
            <li><a href="room/{{channel.id}}">{{channel.name}}</a></li>
            <li><button ng-click="joinChannel(channel.id)">{{channel.name}}</button></li>
        </ul>
    </div>
   
<form>
    <input type="text" ng-model="form.channel"  />
    <button ng-click="createChannel()">Add</button>
</form>
    
</div>